package ar.com.photo_admin.service.marshallers

import grails.converters.JSON

import ar.com.photo_admin.domain.*;
import ar.com.photo_admin.service.dto.*;

class AlbumListMarshaller {
	
	void register() {
								
			JSON.registerObjectMarshaller(AlbumLightWeightListDTO) { AlbumLightWeightListDTO albumList ->
				
				return [
					photos : albumList.albums,
					status: albumList.status,
					description: albumList.description,		
					id : albumList.id			
				]			
			}		
		}
}